<?php
namespace Product\Model;

class DetailCatalog 
{
    public $id;
    public $name;
    public $categories;
    public $cost_code;
    public $cost_value;
    public $listprice_code;
    public $listprice_value;
    public $sellprice_code;
    public $sellprice_value;
	
	
    public function exchangeArray($data)
    {
        $this->id = (isset($data['id'])) ? $data['id'] : null;
        $this->name = (isset($data['name'])) ? $data['name'] : null;
        $this->categories = (isset($data['categories'])) ? $data['categories'] : null;
        $this->cost_code = (isset($data['cost_code'])) ? $data['cost_code']:null;
        $this->cost_value = (isset($data['cost_value'])) ? $data['cost_value']:null;
		$this->listprice_code = (isset($data['listprice_code'])) ? $data['listprice_code']:null;
		$this->listprice_value = (isset($data['listprice_value'])) ? $data['listprice_value']:null;
        $this->sellprice_code = (isset($data['sellprice_code'])) ? $data['sellprice_code']:null;
		$this->sellprice_value = (isset($data['sellprice_value'])) ? $data['sellprice_value']:null;
		
    }
	
	public function __construct(array $options = null) {
        if (is_array($options)) {
            $this->setOptions($options);
        }
    }
        
    public function getArrayCopy()
     {
         return get_object_vars($this);
     }
}